#import <Foundation/Foundation.h>
#import <StoreKit/StoreKit.h>
typedef NS_ENUM(NSInteger, IAPFiledCode) {
    IAP_FILEDCOED_APPLECODE = 0,
    IAP_FILEDCOED_NORIGHT = 1,
    IAP_FILEDCOED_EMPTYGOODS = 2,
    IAP_FILEDCOED_CANNOTGETINFORMATION = 3,
    IAP_FILEDCOED_BUYFILED = 4,
    IAP_FILEDCOED_USERCANCEL = 5
};
@protocol IApRequestResultsDelegate <NSObject>
- (void)filedWithErrorCode:(NSInteger)errorCode andError:(NSString *)error; 
@end
@interface IAPManager : NSObject
SINGLETON_FOR_HEADER(IAPManager)
@property (nonatomic, weak)id<IApRequestResultsDelegate>delegate;
- (void)startManager;
- (void)stopManager;
- (void)requestProductWithId:(NSString *)productId;
@end
